// 像素适配
import { Dimensions } from 'react-native';

const uiWidth = 375;
const width = Dimensions.get('window').width;

export function px2dp(px) {
  return px * (width / uiWidth);
}